#ifndef UDPWORKERTHREAD_H
#define UDPWORKERTHREAD_H

#include <QObject>
#include <QThread>
#include "udpworker.h"

class UdpWorkerThread : public QObject {
    Q_OBJECT

public:
    explicit UdpWorkerThread(QObject *parent = nullptr);
    ~UdpWorkerThread();

    void start();
    void stop();

    UdpWorker* getWorker() const;

private:
    QThread* thread;
    UdpWorker* worker;
};

#endif // UDPWORKERTHREAD_H
